BenSelect Documentation
OnLoad - Age Limits per State
Send Feedback
JScript Examples > JScript for Plans > OnLoad - Age Limits per State

Glossary Item Box

The following script calculates age limits per state. Put this in Onload.

Note:  0 is ee, 1 is spouse and 2 is child

------------------------------------------------------------------------------------------------------------------------------------------

// Dependent child age limits vary by state.

Event.Config.AgeMax[2] = 18;

Event.Config.FullStudentAgeMax[2] = 23;

if (Event.EnrollmentState == 'LA' ||

Event.EnrollmentState == 'TN')

Event.Config.FullStudentAgeMax[2] = 24;

else if (Event.EnrollmentState == 'DE' ||

Event.EnrollmentState == 'MN' ||

Event.EnrollmentState == 'MO' ||

Event.EnrollmentState == 'MT') {

Event.Config.FullStudentAgeMax[2] = 25;

}

else if (Event.EnrollmentState == 'ND') {

Event.Config.FullStudentAgeMax[2] = 26;

}

else if (Event.EnrollmentState == 'PA') {

Event.Config.AgeMax[2] = 19;

}

©2024. All Rights Reserved.